
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<form action="upload" method="post" enctype="multipart/form-data">
<div class="mb-3">
    <label for="formFile" class="form-label">单个文件上传</label>
    <input class="form-control" type="file" id="formFile" name="file">

   <button type="submit" class="btn btn-primary">提交</button>
    <p th:text="${msg}"></p>
</div>
</form>
<!--<form action="upload" method="post" enctype="multipart/form-data">-->
<!--<div class="mb-3">-->
<!--<label for="formFileMultiple" class="form-label">多个文件上传</label>-->
<!--<input class="form-control" type="file" id="formFileMultiple"multiple-->
<!--name="files">-->
<!--<button type="submit" class="btn btn-primary">提交</button>-->
<!--<p th:text="${msg}"></p>-->
<!--</div>-->
<!--</form>-->
</body>
</html>